package edu.qichen.onlineBlog.blogs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.qichen.onlineBlog.blogs.dto.*;
import edu.qichen.onlineBlog.blogs.pojo.Blog;
import edu.qichen.onlineBlog.user.dto.PageUserRes;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/4/26 14:41
 */

public interface BlogService extends IService<Blog> {
    BlogUserRes<BlogUserPageDto> queryById(Long id);

    Blog addBlogs(AddBlogReq addBlogReq,HttpServletRequest request);

    PageBlogRes<BlogUserPageDto> queryBlogsPage(PageBlogReq pageBlogReq);

    PageBlogRes<Blog> queryByTitle(String title);

    Blog updateArticle(UpdateArticleReq updateArticleReq, HttpServletRequest request);

    Boolean removeById(Long id);

    PageBlogRes<BlogUserPageDto> newBlogs(PageBlogReq pageBlogReq);
}
